<template>
	<div class="emptybox" :style="'height:'+emptyheight+';'" v-if="!emptylist || emptylist.length<=0">
		<div class="emptyitem">
		<slot>
			<img src="@/images/empty.png"/>
		</slot>
		<div>{{emptytext}}</div>
		</div>
	</div>
</template>

<script>
	export default {
		name: 'emptymain',
		props: {
			emptytext: {
				type: String,
				default: '暂无数据'
			},
			emptylist: {
				type: Array,
				default: []
			},
			emptyheight: {
				type: String,
				default: '500px'
			},
		},
	}
</script>